
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Feed;
import cn.edu.scau.cmi.hombio.domain.InspectionException;
import cn.edu.scau.cmi.hombio.domain.PigHouse;
import cn.edu.scau.cmi.hombio.domain.Pigsty;
import cn.edu.scau.cmi.hombio.domain.Prevention;
import cn.edu.scau.cmi.hombio.domain.TaskPigsty;
import cn.edu.scau.cmi.hombio.domain.Transfer;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for Pigsty entities
 * 
 */
public interface PigstyService {

	/**
	* Save an existing PigHouse entity
	* 
	 */
	public Pigsty savePigstyPigHouse(Integer id, PigHouse related_pighouse);

	/**
	* Delete an existing InspectionException entity
	* 
	 */
	public Pigsty deletePigstyInspectionExceptions(Integer pigsty_id, Integer related_inspectionexceptions_id);

	/**
	* Save an existing Feed entity
	* 
	 */
	public Pigsty savePigstyFeeds(Integer id_1, Feed related_feeds);

	/**
	* Delete an existing Prevention entity
	* 
	 */
	public Pigsty deletePigstyPreventions(Integer pigsty_id_1, Integer related_preventions_id);

	/**
	* Delete an existing Feed entity
	* 
	 */
	public Pigsty deletePigstyFeeds(Integer pigsty_id_2, Integer related_feeds_id);

	/**
	* Save an existing TaskPigsty entity
	* 
	 */
	public Pigsty savePigstyTaskPigsties(Integer id_2, TaskPigsty related_taskpigsties);

	/**
	 */
	public Pigsty findPigstyByPrimaryKey(Integer id_3);

	/**
	* Delete an existing TaskPigsty entity
	* 
	 */
	public Pigsty deletePigstyTaskPigsties(Integer pigsty_id_3, Integer related_taskpigsties_id);

	/**
	* Delete an existing PigHouse entity
	* 
	 */
	public Pigsty deletePigstyPigHouse(Integer pigsty_id_4, Integer related_pighouse_id);

	/**
	* Load an existing Pigsty entity
	* 
	 */
	public Set<Pigsty> loadPigstys();

	/**
	* Save an existing Pigsty entity
	* 
	 */
	public void savePigsty(Pigsty pigsty);

	/**
	* Save an existing Prevention entity
	* 
	 */
	public Pigsty savePigstyPreventions(Integer id_4, Prevention related_preventions);

	/**
	* Delete an existing Pigsty entity
	* 
	 */
	public void deletePigsty(Pigsty pigsty_1);

	/**
	* Return all Pigsty entity
	* 
	 */
	public List<Pigsty> findAllPigstys(Integer startResult, Integer maxRows);

	/**
	* Save an existing Transfer entity
	* 
	 */
	public Pigsty savePigstyTransfers(Integer id_5, Transfer related_transfers);

	/**
	* Return a count of all Pigsty entity
	* 
	 */
	public Integer countPigstys();

	/**
	* Delete an existing Transfer entity
	* 
	 */
	public Pigsty deletePigstyTransfers(Integer pigsty_id_5, Integer related_transfers_id);

	/**
	* Save an existing InspectionException entity
	* 
	 */
	public Pigsty savePigstyInspectionExceptions(Integer id_6, InspectionException related_inspectionexceptions);
}